//学号唯一性验证
function xhyz(path){
	var sId = $("#xh").val();
	/*alert(sId+"  "+path);*/
	sId = sId.replace(/(^\s+)|(\s+$)/g, "");
	if(sId==null || sId==""){
		$("#exit").remove();
	}
	var xh = {"sId":sId};
	if(sId!=0 && ""!=sId){
		$.ajax({
			type:"post",
			url:path,
			contentType:"application/json; charset=UTF-8",
			dataType:"json",
			data:JSON.stringify(xh),
			success:function(data){
				if(data.code=="true"){
					$("#xsxh").css({"font-color":"1px solid #A94442"});
					$("#xh").css({"border":"1px solid #A94442"});
					if($("#exit").length<=0){
						$("#xh").after("<p class='form-group has-error' id='exit' style='color:#A94442;margin-left:5px;font-size:12px;'>学号已存在！</p>");
					}
//					$(":button")attr("disabled","disabled");
				}else{
					$("#xsxh").css({"font-color":"1px solid #A94442"});
					$("#xh").css({"border":"1px solid #008000"});
					$("#exit").remove();
				}
			}
		});
	}else{
		/*alert("sid等于空");*/
	}
	
	
	
}